﻿using System.Web;

namespace N2.Web
{
	using Edit.Js;
	
	public class CssHandler : DirectoryResourceHandler
	{
		protected override string[] FileMasks {
			get { return new[] { "*.css" }; }
		}
		
		protected override string ContentType { get { return "text/css"; } }

		protected override string ReadFileContent(string fileName)
		{
			return CssMinifier.StripWhitespace(base.ReadFileContent(fileName));
		}

	}
}
